home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / self / contrib.lha / contrib / 491 / aa / test4.self < prev    next >
Encoding:
Text File  |  1993-07-18  |  1.1 KB  |  57 lines

  1. " simple test cases "
  2. "
  3. *
  4. * These are tests for the polynomial representations. 
  5. * test4.self,v 1.3 1993/07/18 20:22:35 richards Exp
  6. *
  7. * test4.self,v
  8. # Revision 1.3  1993/07/18  20:22:35  richards
  9. # Added substitution of polynomials (not quite working properly yet).
  10. # Some tests for this added to test4.
  11. # Buttons work, selections work, and eventHandling is coming along.
  12. #
  13. # Revision 1.2  1993/05/30  21:41:14  richards
  14. # CVS checkin.
  15. #
  16. # Revision 1.1  1993/05/23  23:16:47  richards
  17. # Initial revision
  18. #
  19. # Revision 1.2  1992/08/19  02:00:39  richards
  20. # Added a description.
  21. #
  22. # Revision 1.1  1992/07/05  22:11:03  richards
  23. # Initial revision
  24. #
  25. *
  26. *
  27. *
  28. "
  29.  
  30. _AddSlotsIfAbsent: (| foo. bar. baz. hunk. junk. roo. moo. too. loo. |)
  31.  
  32. foo: aa scalar create: 'A'
  33. bar: aa scalar create: 'B'
  34. junk: foo + bar
  35. junk printLine          " outputs A+B "
  36.  
  37.  
  38. hunk: junk * foo
  39. hunk printLine
  40.  
  41. baz: hunk makeBoite
  42. baz printLine
  43.  
  44. roo: foo / bar
  45. roo printLine
  46.  
  47. moo: aa scalar create: 'C'
  48. too: roo substitute: moo For: foo
  49. too printLine.
  50.  
  51. loo: hunk substitute: too For: (junk copy)
  52. loo printLine.
  53.  
  54.  
  55.  
  56.